package sctu.edu.java.year2016.team07.nieying.practice.dishiwuzhang;

/**
 * Created by Administrator on 2016/6/6 0006.
 */
public class ThreadTest extends Thread{
    private int count=0;
    public void run(){
        while(true){
            System.out.println(count+" ");
            if(++count==15){
                return;
            }
        }
    }
    public static void main(String args[]){
        new ThreadTest().start();
    }
}
